<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
<title>修改房屋状态信息</title>
<link th:replace="common/header"/>
</head>
<body class="no-skin">
	<div th:replace="common/top"/>
	<div class="main-container ace-save-state" id="main-container">
		<div th:replace="common/menu"/>
		<div class="main-content">
			<div class="main-content-inner">
				<div th:replace="common/title"/>
				<div class="page-content">
					<div th:replace="common/skin"/>
					<div class="row">
						<div class="col-xs-12">
							<!-- PAGE CONTENT BEGINS -->
							<form class="form-horizontal" action="edit.do" name="form" th:action="@{/houseStatus/edit}" th:method="post" th:object="${houseStatus}">
								<input type="hidden" id="id" name="id" th:value="*{id}"/>
								<input type="hidden" id="ownerId" name="ownerId" th:value="*{ownerId}"/>
								<input type="hidden" id="fromOwnerId" name="fromOwnerId" th:value="*{fromOwnerId}"/>
								<h3 class="header smaller lighter blue"><i class="fa fa-plus" aria-hidden="true"></i>修改房屋状态信息</h3>
								<div class="row-fluid">
								<!--PAGE CONTENT BEGINS HERE-->
									<div class="span6">
										<div class="control-group">
											<label class="control-label" for="hitNumber">幢号:<font style="color:red">*</font></label>
											<div class="controls">
												<input name="hitNumber" id="hitNumber" class="input_fix" placeholder="幢号" th:value="*{hitNumber}" maxlength="50"/>
											</div>
										</div>
									</div>
									<div class="span6">
										<div class="control-group">
											<label class="control-label" for="roomNumber">房号:<font style="color:red">*</font></label>
											<div class="controls">
												<input name="roomNumber" id="roomNumber" class="input_fix" placeholder="房号" th:value="*{roomNumber}" maxlength="50"/>
											</div>
										</div>
									</div>
								</div>
								<div class="row-fluid">
									<div class="span6">
										<font style="color:red"><p th:if="${#fields.hasErrors('hitNumber')}" th:errors="*{hitNumber}" >Name Error</p>&nbsp;</font>
									</div>
									<div class="span6">
										<font style="color:red"><p th:if="${#fields.hasErrors('roomNumber')}" th:errors="*{roomNumber}">Name Error</p>&nbsp;</font>
									</div>
								</div>
								<div class="row-fluid">
								<!--PAGE CONTENT BEGINS HERE-->
									<div class="span6">
										<div class="control-group">
											<label class="control-label" for="structure">房屋结构:<font style="color:red">*</font></label>
											<div class="controls">
												<select th:field="*{structure}" id="structure" name="structure" class="input_fix" th:value="*{structure}">
													<option value="">--请选择--</option>
													<option th:each="structure : ${T(xyz.ibenben.zhongdian.system.entity.enums.HouseStructureEnum).values()}" th:value="${structure}" th:text="${structure.text}"></option>
												</select>
											</div>
										</div>
									</div>
									<div class="span6">
										<div class="control-group">
											<label class="control-label" for="designPurpose">设计用途:<font style="color:red">*</font></label>
											<div class="controls">
												<input name="designPurpose" id="designPurpose" class="input_fix" placeholder="设计用途" th:value="*{designPurpose}" maxlength="50"/>
											</div>
										</div>
									</div>
								</div>
								<div class="row-fluid">
								<!--PAGE CONTENT BEGINS HERE-->
									<div class="span6">
										<font style="color:red"><span th:if="${#fields.hasErrors('structure')}" th:errors="*{structure}">Name Error</span></font>
									</div>
									<div class="span6">
										<font style="color:red"><span th:if="${#fields.hasErrors('designPurpose')}" th:errors="*{designPurpose}">Name Error</span></font>
									</div>
								</div>
								<div class="row-fluid">
								<!--PAGE CONTENT BEGINS HERE-->
									<div class="span6">
										<div class="control-group">
											<label class="control-label" for="houseTotalLayer">所在层数/房屋总层数:<font style="color:red">*</font></label>
											<div class="controls">
												<input name="houseInLayer" id="houseInLayer" class="input_fix2" placeholder="所在层数" th:value="*{houseInLayer}"/>/
												<input name="houseTotalLayer" id="houseTotalLayer" class="input_fix2" placeholder="房屋总层数" th:value="*{houseTotalLayer}"/>
											</div>
										</div>
									</div>
									<div class="span6">
										<div class="control-group">
											<label class="control-label" for="type">房屋类型:<font style="color:red">*</font></label>
											<div class="controls">
												<select th:field="*{type}" id="type" name="type" class="input_fix" th:value="*{type}">
													<option value="">--请选择--</option>
													<option th:each="type : ${T(xyz.ibenben.zhongdian.system.entity.enums.StatusTypeEnum).values()}" th:value="${type}" th:text="${type.text}"></option>
												</select>
											</div>
										</div>
									</div>
								</div>
								<div class="row-fluid">
									<div class="span6">
										<font style="color:red"><p th:if="${#fields.hasErrors('houseInLayer')}" th:errors="*{houseInLayer}">Name Error</p>&nbsp;
										<p th:if="${#fields.hasErrors('houseTotalLayer')}" th:errors="*{houseTotalLayer}">Name Error</p>&nbsp;</font>
									</div>
									<div class="span6">
										<font style="color:red"><p th:if="${#fields.hasErrors('type')}" th:errors="*{type}">Name Error</p>&nbsp;</font>
									</div>
								</div>
								<div class="row-fluid">
								<!--PAGE CONTENT BEGINS HERE-->
									<div class="span6">
										<div class="control-group">
											<label class="control-label" for="coveredArea">建筑面积(平方米):<font style="color:red">*</font></label>
											<div class="controls">
												<input name="coveredArea" id="coveredArea" class="input_fix" placeholder="建筑面积(平方米)" th:value="*{coveredArea}"/>
											</div>
										</div>
									</div>
									<div class="span6">
										<div class="control-group">
											<label class="control-label" for="useableArea">使用面积(平方米):<font style="color:red">*</font></label>
											<div class="controls">
												<input name="useableArea" id="useableArea" class="input_fix" placeholder="使用面积(平方米)" th:value="*{useableArea}"/>
											</div>
										</div>
									</div>
								</div>
								<div class="row-fluid">
								<!--PAGE CONTENT BEGINS HERE-->
									<div class="span6">
										<font style="color:red"><span th:if="${#fields.hasErrors('coveredArea')}" th:errors="*{coveredArea}">Name Error</span></font>
									</div>
									<div class="span6">
										<font style="color:red"><span th:if="${#fields.hasErrors('useableArea')}" th:errors="*{useableArea}">Name Error</span></font>
									</div>
								</div>
								<div class="row-fluid">
									<div class="text-center span12">
										<button shiro:hasPermission="/houseStatus/edit" class="btn btn-primary" type="submit"><i class="fa fa-floppy-o" aria-hidden="true"></i>更新</button>
										<button shiro:hasPermission="/houseStatus/edit" class="btn btn-danger" type="reset"><i class="fa fa-times" aria-hidden="true"></i>取消</button>
										<a shiro:hasPermission="/houseStatus/getall" class="btn" href="getall" th:href="@{/houseStatus/getall}"><i class="fa fa-reply" aria-hidden="true"></i>返回</a>
									</div>
								</div>
							</form>
							<!-- PAGE CONTENT ENDS -->
						</div><!-- /.col -->
					</div><!-- /.row -->
				</div><!-- /.page-content -->
			</div>
		</div><!-- /.main-content -->
		<div th:replace="common/footer"/>
	</div><!-- /.main-container -->
	<div th:replace="common/buttom"/>

	<script type="text/javascript">
		$("form").submit(function(){  
			$(":submit",this).attr("disabled","disabled");  
		}); 
	</script>
</body>
</html>
